/**
 * 弹窗配置
 * 字典管理 dict-manage
 * 新增 dict-manage-add
 */
const popConfig = {
  'dict-manage': {
    // 字典明细编辑
    'dict-edit-detail': {
      popTitle: '编辑字典',
      popType: 'edit-dict-detail',
      visible: true,
      popConfig: {
        width: '50%'
      },
      path: 'dictManage.updateDictDetail'
    },
    // 字典明细新增
    'dict-manage-add': {
      popTitle: '新增字典',
      popType: 'add-dict-detail',
      visible: true,
      popConfig: {
        width: '50%'
      },
      path: 'dictManage.addDictDetail'
    },
    // 字典明细单个删除
    'dict-manage-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的字典信息？',
      splitProp: 'label',
      paramsProp: { id: 'id' },
      path: 'dictManage.deleteDictDetailById'
    },
    // 字典明细批量删除
    'dict-manage-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '确认批量删除XXX字典信息？',
      splitProp: 'label',
      paramsProp: { ids: 'id' },
      path: 'dictManage.batchDeleteDictDetail'
    },
    // 字典新增
    'dict-operate-add': {
      popTitle: '新增字典',
      popType: 'add-dict',
      visible: true,
      popConfig: {
        overflow: 'auto',
        width: '50%'
      },
      path: 'dictManage.addDict'
    },
    // 字典编辑
    'dict-operate-edit': {
      popTitle: '编辑字典',
      popType: 'edit-dict',
      visible: true,
      popConfig: {
        overflow: 'auto',
        width: '50%'
      },
      path: 'dictManage.updateDict'
    },
    // 字典明细删除
    'dict-operate-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的字典信息？',
      splitProp: 'label',
      paramsProp: { id: 'id' },
      path: 'dictManage.deleteDictDetailById'
    },
    // 字典删除
    'dict-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的字典信息？',
      splitProp: 'name',
      paramsProp: { id: 'id' },
      path: 'dictManage.deleteDictById',
      idCode: 'dict'
    }
  }
}

export default {}
export { popConfig }
